package main

import (
	"demo/conf"
	"demo/core"
	"demo/routes"
)

func main() {
	//初始化配置文件
	conf.Init()
	//初始化路由
	r := routes.Load()
	//初始化数据库
	core.InitDb()
	core.Migration()
	//初始化缓存
	core.InitCache()
	//运行框架
	r.Run(conf.HttpAddress + conf.HttpPort)
}
